<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">
        <span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
    </button>
    <h4 class="modal-title">添加到</h4>
</div>
{{ Form::open(array('url' => '/project/add-pictures', 'class' => 'form-horizontal', 'role' => 'form', 'id' => 'add-picture-to-project')) }}
<div class="modal-body">
    {{ Form::hidden('picture_id', $pictureId) }}
    @foreach($projects as $project)
       <div class="checkbox">
           <label>
              @if($project->isSelect)
              {{ Form::checkbox('project_ids[]', $project->id, true) }}
              @else
              {{ Form::checkbox('project_ids[]', $project->id, false) }}
              @endif

               {{ $project->name }}

           </label>
       </div>
    @endforeach
</div>
<div class="modal-footer">
    {{ Form::submit('更新', array('class' => 'btn btn-primary')) }}
</div>
{{ Form::close() }}
